home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / FlyPaper.sit / Fly Paper / FlyPaper Source / New Sources / ClippingFileData.h < prev    next >
Text File  |  1996-06-22  |  922b  |  42 lines

  1. #ifndef CLIPPINGFILEDATA_H
  2. #define CLIPPINGFILEDATA_H
  3. #endif
  4.  
  5. #ifndef FLYPAPERAPP_H
  6. #include "FlyPaperApp.h"
  7. #endif
  8.  
  9. #define                kClippingFileDataResType                kSignature
  10. #define                kClippingFileDataResID                    128
  11.  
  12. class CClippingFileData
  13. {
  14. public:
  15.                                 CClippingFileData (short refNum);
  16.                                 ~CClippingFileData ();
  17.                                 
  18.     static void                    CreateNewClippingFileData (short refNum);
  19.     
  20.     Boolean                        GetOnLeft ();
  21.     short                        GetOffset ();
  22.     void                        SetOnLeft (Boolean onLeft);
  23.     void                        SetOffset (short offset);
  24.     
  25. protected:
  26.  
  27. #if PRAGMA_ALIGN_SUPPORTED
  28. #pragma options align=mac68k
  29. #endif
  30.  
  31.     typedef struct {
  32.         Boolean                    onLeft;            // true if on left of screen                
  33.         short                    offset;            // distance from top of screen
  34.         short                    color;            // which window color table to use
  35.     } ClippingDataRec, **ClippingDataHandle;
  36.  
  37. #if PRAGMA_ALIGN_SUPPORTED
  38. #pragma options align=reset
  39. #endif
  40.  
  41.     ClippingDataHandle            fDataHandle;
  42. };